function B(){
	this.name = '王娇';
	this.age = '18';
	// this.sayHello = function(){
	// 	console.log("真奇怪！！！");
	// }
}
B.prototype.sayHello = function(){
	console.log("真奇怪！！！");
}
function A(){
	B.call(this);
	this.title = '牛魔王';
}

var a = new A();
console.log(a.title);
console.log(a.name);
console.log(a.age);
a.sayHello();